package Demo1299.Demo21;

public class Dog extends Animal {
    private int age;

    @Override
    public String toString() {
        return "Dog{" +
                "id='" + getId() + '\'' +
                "name='" + getName() + '\'' +
                "age=" + age +
                '}';
    }

    public Dog() {
    }

    public Dog(String id, String name, int age) {
        super(id, name);
        this.age = age;
    }
}
